package com.yupi.springbootinit.controller;

import com.yupi.springbootinit.annotation.TestAop;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname Test
 * @Description TODO
 * @Date 2023/10/15 17:27
 * @Created by Daivd
 */
@RestController
@RequestMapping("/test")
@Slf4j
public class TestController {

    @GetMapping("/getName")
    @TestAop(username = "ldw")
    public String getName() {
        return "Hello World";
    }
}
